package com.sherlochao.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.sherlochao.dao.PhotoDao;
import com.sherlochao.model.Photo;
import com.sherlochao.service.PhotoService;

@Transactional
@Service("photoService")
public class PhotoServiceImpl implements PhotoService{
	
	@Resource
	private PhotoDao photoDao;

	@Override
	public List<Photo> getPhotoByCommentId(String commentId) {
		return photoDao.getPhotoByCommentId(commentId);
	}

	@Override
	public Photo get(String id) {
		return null;
	}

	@Override
	public String save(Photo entity) {
		return photoDao.save(entity);
	}

}
